package com.dtbk.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class RegisterActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.register);

//		Button jfsh = (Button) findViewById(R.id.jfsh);
//		Button rjtj = (Button) findViewById(R.id.rjtj);
//		Button grzx = (Button) findViewById(R.id.grzx);
//		jfsh.setOnClickListener(new MyClick());
//		rjtj.setOnClickListener(new MyClick());
//		grzx.setOnClickListener(new MyClick());

	}

	public class MyClick implements OnClickListener {

		@Override
		public void onClick(View v) {
			Intent intent = new Intent();
			switch (v.getId()) {
			case R.id.jfsh:
				intent.setClass(RegisterActivity.this, MerchantsActivity.class);
				break;
			case R.id.rjtj:
				intent.setClass(RegisterActivity.this, SoftwareActivity.class);
				break;
			case R.id.grzx:
				intent.setClass(RegisterActivity.this, MyCenterActivity.class);
				break;
			}
			startActivity(intent);
		}
	}

}
